-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add methods to create proxy on arbitrary connections #91
base: master
Are you sure you want to change the base?
Conversation
static void create(const Glib::RefPtr<Gio::DBus::Connection> &connection, | ||
Gio::DBus::ProxyFlags proxyFlags, | ||
const std::string &name, | ||
const std::string &objectPath, | ||
const Gio::SlotAsyncReady &slot, | ||
const Glib::RefPtr<Gio::Cancellable> &cancellable = {}); | ||
static void createForBus(Gio::DBus::BusType busType, | ||
Gio::DBus::ProxyFlags proxyFlags, | ||
const std::string &name, | ||
const std::string &objectPath, | ||
const Gio::SlotAsyncReady &slot, | ||
const Glib::RefPtr<Gio::Cancellable> &cancellable = {}); | ||
|
||
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createForBusFinish (const Glib::RefPtr<Gio::AsyncResult> &result); | ||
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createFinish(const Glib::RefPtr<Gio::AsyncResult> &result); | ||
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> create_sync( | ||
const Glib::RefPtr<Gio::DBus::Connection> &connection, | ||
Gio::DBus::ProxyFlags proxyFlags, | ||
const std::string &name, | ||
const std::string &objectPath, | ||
const Glib::RefPtr<Gio::Cancellable> &cancellable = {}); | ||
|
||
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createForBusFinish (const Glib::RefPtr<Gio::AsyncResult> &result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: maybe reorder so that "create()" and "createForBus()" methods are kept together (and in same order as in proxy.cpp.tmpl
)?
Looks good to me except for minor nit. |
Can you add a tag to commit message before merging please. looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add commit message tag.
This allows, for example, the creation of a peer to peer D-Bus connection over a socket.